package com.baizhi;

import com.baizhi.entity.Article;
import com.baizhi.service.ArticleService;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.document.*;
import org.apache.lucene.store.FSDirectory;
import org.apache.lucene.util.Version;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by 野马 on 2019/6/24.
 */
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes = CmfzApplication.class)
public class LuceneTest1 {
    @Autowired
    private ArticleService articleService;

    @Test
    public void insert() throws IOException {






    }


}
